<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="tilesx" uri="http://tiles.apache.org/tags-tiles-extras"%>

<!-- All Spring messages used in this view are declared below with a variable -->
<spring:message code="menu.destination_lbl" var="destination_lbl"/>
<spring:message code="menu.predefined_lbl" var="predefined_lbl"/>
<spring:message code="menu.customermanagement_lbl" var="customer_lbl"/>
<spring:message code="menu.home_lbl" var="home_lbl"/>
<spring:message code="menu.accommodations_lbl" var="accommodations_lbl"/>
<spring:message code="logout_lbl" var="logout_lbl"/>

<nav id="menu-nav" class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="${currentMenuTab == 'index' ? 'active' : ''}"><a href="<c:url value="/"/>">${home_lbl}</a></li>
                <li class="${currentMenuTab == 'customer' ? 'active' : ''}"><a href="<c:url value="/customer/index"/>">${customer_lbl}</a></li>
                <li class="${currentMenuTab == 'trip' ? 'active' : ''}"><a href="<c:url value="/trip/"/>">${predefined_lbl}</a></li>
                <li class="${currentMenuTab == 'accommodation' ? 'active' : ''}"><a href="<c:url value="/accommodation/index"/>">${accommodations_lbl}</a></li>
                <li class="${currentMenuTab == 'destination' ? 'active' : ''}"><a href="<c:url value="/destination/"/>">Bestemmingen</a></li>

            </ul>
                <ul id="menuItemMobile" class="pull-right nav navbar-nav">
                    <li ><a href="<c:url value="/logout"/>">${logout_lbl}</a></li>
                </ul>
        </div>
    </div>
</nav>
